<%@ page language="java" pageEncoding="UTF-8" import="com.jy.modules.cims.data.dto.ContractAllDto"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- size变量用于表示list的大小 -->
<c:if test="${not empty contractAllDto and not empty contractAllDto.ccDtolist}">
<c:set var="size" value="${contractAllDto.ccDtolist.size() }" scope="page"></c:set>
<c:set var="sum" value="${2-size%3+size}" scope="page"></c:set>
<c:if test="${not empty contractAllDto.ccDtolist and size>0}">
 <table class="formTableSwap" border="0" align="center" cellpadding="0" cellspacing="1" >
	<c:forEach varStatus="status" begin="0" end="${sum}">
		<c:if test="${status.count%3==1}">
			<tr>
		</c:if>
		<c:choose>
			<c:when test="${status.index<size}">
				<c:set var="item" value="${contractAllDto.ccDtolist.get(status.index)}"></c:set>
				<c:if test="${not empty item.constraintValues}">
					<c:set var="displayContent" value="${item.constraintValues }"></c:set>
				</c:if>
				<c:if test="${empty item.constraintValues}">
					<c:set var="displayContent" value="${item.scopeEquation }"></c:set>
				</c:if>
				<th>${item.constraintName}：</th>
				<td><input type="text" class="cims_noborder" value="${displayContent}" readonly/></td>
			</c:when>
			<c:otherwise>
				<th></th>
				<td><input type="text" class="cims_noborder" readonly/></td>
			</c:otherwise>
		</c:choose>
		<c:if test="${status.count%3==0}">
			</tr>
		</c:if>
	</c:forEach>
 </table>
</c:if>
</c:if>